<?php

require_once "core/application/models/mrequests/mrequests8.php";

class Mrequests9 extends Mrequests8 {

    private $_query;

    protected function getRecord($id) {
        /**
         *  одиночная запись
         */
        DB::getInstance()->openConnectionToGS();
        $this->_query = "SELECT * FROM `personal_requests` WHERE `toId` = '$_SESSION[id]' AND `id` = '$id'";
        return DB::getInstance()->sql($this->_query);
        unset($this->_query);
        DB::getInstance()->closeConnection();
        
    }

}

?>
